package com.gitee.faster.webdav.exception;

/**
 * @author hongda.li
 */
public class WebDavException extends RuntimeException {

    public WebDavException() {
    }

    public WebDavException(Exception e) {
        super(e);
    }

    public WebDavException(String message, Exception e) {
        super(message, e);
    }

    public WebDavException(String message) {
        super(message);
    }

    public static WebDavException from(Exception exception) {
        return exception instanceof WebDavException wde ? wde : new WebDavException(exception);
    }
}
